<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>三元运算符</title>
        <script>
            var a=5;
            var b=3;
            var c= a>b ? 1:0;
            document.write(c)
        </script>



    </head>
    <body>
        
    </body>
</html>